<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Formuler
 *
 * @ORM\Table(name="formuler")
 * @ORM\Entity
 */
class Formuler
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var Presentation
     *
     * @ORM\OneToOne(targetEntity="Presentation")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="preCode", referencedColumnName="preCode", unique=true)
     * })
     */
    private $precode;

    /**
     * @var Medicament
     *
     * @ORM\OneToOne(targetEntity="Medicament")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="medDepotlegal", referencedColumnName="medDepotlegal", unique=true)
     * })
     */
    private $meddepotlegal;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set precode
     *
     * @param Presentation $precode
     * @return Formuler
     */
    public function setPrecode(\Presentation $precode = null)
    {
        $this->precode = $precode;
        return $this;
    }

    /**
     * Get precode
     *
     * @return Presentation 
     */
    public function getPrecode()
    {
        return $this->precode;
    }

    /**
     * Set meddepotlegal
     *
     * @param Medicament $meddepotlegal
     * @return Formuler
     */
    public function setMeddepotlegal(\Medicament $meddepotlegal = null)
    {
        $this->meddepotlegal = $meddepotlegal;
        return $this;
    }

    /**
     * Get meddepotlegal
     *
     * @return Medicament 
     */
    public function getMeddepotlegal()
    {
        return $this->meddepotlegal;
    }
}